<template>
<AdminFramework>
  <CommentTable :data="commentList" @update="getAllComment" />
</AdminFramework>
</template>

<script setup>
import AdminFramework from "../../../components/admin/UiFramework/AdminFramework.vue";
import CommentTable from "../../../components/admin/comment/CommentTable.vue";
import {request} from "../../../api/baseFentch";
import {onMounted, ref} from "vue";

const commentList = ref([])

const getAllComment = async () => {
  const result = await request('/blog/reply/all')
  if (result?.code === 0) {
    commentList.value = result?.object
  }
}

onMounted(async () => {
  await getAllComment()
})
</script>

<style scoped>

</style>